package com.anXin.article.service;

import com.anXin.model.article.dtos.ArticleDto;
import com.anXin.model.article.dtos.ArticlePublishDto;
import com.anXin.model.article.pojos.Article;
import com.anXin.model.common.dtos.ResponseResult;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;


public interface ArticlePublishService extends IService<Article> {


    public ResponseResult uploadPicture(MultipartFile multipartFile);

    /**
     * 发布修改文章或保存为草稿
     * @param dto
     * @return
     */
    public ResponseResult submitNews(ArticlePublishDto dto);


    public ResponseResult downOrUp(ArticlePublishDto dto);
}
